package com.eksframework.commons.core.converter;

import java.math.RoundingMode;

/**
 * AbstractNumberConverter
 *
 * @author: chenfenghai
 * @version: 1.0
 * @date: 2020-04-24 9:33
 * @blame Android Team
 */
public abstract class AbstractNumberConverter<T> extends AbstractObjectConverter<T> {

    /**
     * Constructs an instance with the value present.
     *
     * @param object convert value
     */
    protected AbstractNumberConverter(T object) {
        super(object);
    }

    /**
     * get rounding mode to apply
     *
     * @param roundingMode rounding mode
     * @return RoundingMode
     * @see RoundingMode
     */
    abstract RoundingMode getRoundingMode(RoundingMode roundingMode);
}
